package com.primb.bench.project.home.contract;

import com.primb.baselibs.base.BasePresenter;
import com.primb.bench.project.home.entity.PromiseListEntity;
import com.primb.bench.project.home.entity.RequestClientEntity;

import java.util.List;

import rx.Observable;

/**
 * Created by Chen on 2017/7/10.
 * 功能描述：
 */

public class LoanPromiseContract {

    public interface View {
        void showLoading();

        void hideLoading();

        void showError(String error);

        void configListView();

        void setDataToList(List<PromiseListEntity.DataBean> entity);

        void loadMoreList(List<PromiseListEntity.DataBean> entity);

        void loadMoreField();

        void clearListData();
    }

    public interface Presenter extends BasePresenter {
        void getDataList(String custId);

        void loadMoreList();

    }

    public interface Model {
        Observable<List<PromiseListEntity.DataBean>> getPromiseInfo(RequestClientEntity entity);
    }
}